package com.ktjiaoyu.crm.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ktjiaoyu.crm.pojo.Role;

import java.util.List;

public interface RoleService extends IService<Role> {

    List<Role> findAllRoles();

    Page<Role> selectRolePages(Page page, String roleName);

    boolean saveRoleAndRight(Role role,String[] rightCodes);

    Role findRoleByUserId(Long usrId);

}
